package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 租赁方案参数
 * @author LikeAdmin
 */
@Data
@ApiModel("租赁方案更新参数")
public class LeasingSchemeUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    private Long id;
    private Long spuId;
    @NotNull(message = "leaseType参数缺失")
    @ApiModelProperty(value = "租赁类型:1、以租代购 2、纯租 3、月供 4、分期   服务类型配置，用于线上下单使用，每种租赁模式最多配置3个方案*")
    private Integer leaseType;

    @NotNull(message = "monthlyRent参数缺失")
    @ApiModelProperty(value = "月租")
    private BigDecimal monthlyRent;

    @NotNull(message = "weeklyRent参数缺失")
    @ApiModelProperty(value = "周租")
    private BigDecimal weeklyRent;

    @NotNull(message = "dayRant参数缺失")
    @ApiModelProperty(value = "日租")
    private BigDecimal dayRant;
    /**
     * 方案详情
     */
    private List<LeasingSchemeDetailsUpdateValidate> schemeDetails;
}
